<?php
/**
 * Created by PhpStorm.
 * User: work
 * Date: 18-8-11
 * Time: 下午2:56
 */

/**
 * http://www.myleftstudio.com/reference/annotations.html
 *
 * @RoutePrefix("/admin")
 */
class AdminController extends \Dai\Framework\Base\BaseController
{
    /**
     * @Get("/index")
     * @Login(true)
     * @formCheck(false)
     * @format(html)
     */
    public function indexAction()
    {
        $this->execute();
    }

    /**
     * @Get("/user/list")
     * @Login(true)
     * @Action(userList)
     * @format(html)
     */
    public function userListAction()
    {
        $this->execute();
    }

    /**
     * @Get("/order/list")
     * @Login(true)
     * @Action(orderList)
     * @format(html)
     */
    public function orderListAction()
    {
        $this->execute();
    }

    /**
     * @Get("/goods/list")
     * @Login(true)
     * @Action(goodsList)
     * @formCheck()
     * @format(html)
     */
    public function goodsListAction()
    {
        $this->execute();
    }

    /**
     * @Post("/goods/set")
     * @Login(true)
     * @Action(goodsSet)
     */
    public function goodsSetAction()
    {
        $this->execute();
    }
}